%> @file gauss.m
function gauss()
% strLeftEqed = ml_GetPrivateProfileString('FixPointConfigB','LEqedpath','config.ini');%strLeftEqed=sprintf(strLeftEqed,I);
% strRightEqed = ml_GetPrivateProfileString('FixPointConfigB','REqedpath','config.ini');%strRightEqed=sprintf(strRightEqed,I);
% gaussmap(strLeftEqed,strRightEqed,strLeftEqed,strRightEqed,3);
% strLeftEqed = ml_GetPrivateProfileString('FixPointConfigA','LEqedpath','config.ini');%strLeftEqed=sprintf(strLeftEqed,I);
% strRightEqed = ml_GetPrivateProfileString('FixPointConfigA','REqedpath','config.ini');%strRightEqed=sprintf(strRightEqed,I);
% gaussmap(strLeftEqed,strRightEqed,strLeftEqed,strRightEqed,1);
% strLeftEqed = ml_GetPrivateProfileString('FixPointConfigM','LEqedpath','config.ini');%strLeftEqed=sprintf(strLeftEqed,I);
% strRightEqed = ml_GetPrivateProfileString('FixPointConfigM','REqedpath','config.ini');%strRightEqed=sprintf(strRightEqed,I);
% gaussmap(strLeftEqed,strRightEqed,strLeftEqed,strRightEqed,1);

% strLeftEqed = ml_GetPrivateProfileString('FixPointConfigB','LExProjpath','config.ini');%strLeftEqed=sprintf(strLeftEqed,I);
% strRightEqed = ml_GetPrivateProfileString('FixPointConfigB','RExProjpath','config.ini');%strRightEqed=sprintf(strRightEqed,I);
% gaussmap(strLeftEqed,strRightEqed,strLeftEqed,strRightEqed,3);
% strLeftEqed = ml_GetPrivateProfileString('FixPointConfigA','LExProjpath','config.ini');%strLeftEqed=sprintf(strLeftEqed,I);
% strRightEqed = ml_GetPrivateProfileString('FixPointConfigA','RExProjpath','config.ini');%strRightEqed=sprintf(strRightEqed,I);
% gaussmap(strLeftEqed,strRightEqed,strLeftEqed,strRightEqed,1);
% strLeftEqed = ml_GetPrivateProfileString('FixPointConfigM','LExProjpath','config.ini');%strLeftEqed=sprintf(strLeftEqed,I);
% strRightEqed = ml_GetPrivateProfileString('FixPointConfigM','RExProjpath','config.ini');%strRightEqed=sprintf(strRightEqed,I);
% gaussmap(strLeftEqed,strRightEqed,strLeftEqed,strRightEqed,1);

strLeftEqed = 'E:/FixPoint/20110516/FixPoint/LB0%dinterp0.tif';
strRightEqed = 'E:/FixPoint/20110516/FixPoint/RB0%dinterp0.tif';
gaussmap(strLeftEqed,strRightEqed,strLeftEqed,strRightEqed,3);


function gaussmap(strLeftmappath,strRightmappath,strLeftEqed,strRightEqed,NUM)

for I=1:NUM
    IM=imread(sprintf(strLeftmappath,I));
    IM=double(IM);
    b=fspecial('gaussian',[3,3],5);
    for K=1:3
        IM=imfilter(IM,b);
    end
    imwrite(uint16(IM),sprintf(strLeftEqed,I),'TIF','Compression','none','ColorSpace','icclab');
end

for I=1:NUM
    IM=imread(sprintf(strRightmappath,I));
    IM=double(IM);
    b=fspecial('gaussian',[3,3],5);
    for K=1:3
        IM=imfilter(IM,b);
    end
    imwrite(uint16(IM),sprintf(strRightEqed,I),'TIF','Compression','none','ColorSpace','icclab');
end